﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LoanComment.ascx.cs" Inherits="LoanComment" %>
<%@ Register TagPrefix="ajax" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>

<asp:Button runat="server" ID="hiddenTargetControlForModalPopup" Style="display: none" />
<ajax:ModalPopupExtender 
    runat="server" 
    ID="commentModalPopup" 
    TargetControlID="hiddenTargetControlForModalPopup" 
    PopupControlID="programmaticPopup"
    DropShadow="True" 
    CancelControlID="cancelButton"
    PopupDragHandleControlID="programmaticPopupDragHandle"
    RepositionMode="RepositionOnWindowResizeAndScroll">
</ajax:ModalPopupExtender>

<asp:Panel runat="server" ID="programmaticPopup" Width="750px" Height="550px" Style="display:none; border: 1px solid Gray; margin: 10px 0px; padding:10px 10px 5px 10px; background-repeat: no-repeat; background-position: 10px center; background-color:white;">
    <div runat="server" ID="programmaticPopupDragHandle" style="height:25px;  text-align:center; cursor: move;  border: solid 1px Gray; color: Black; background-color:#cfcfcf;" >
        <asp:Label ID="titleLabel" runat="server" Text=""></asp:Label>
    </div>        
    <asp:UpdatePanel runat="server" ID="MessagesUpdatePanel" >
        <ContentTemplate>
            <div style="height:375px;" runat="server" id="bodyMessageDiv" >

            </div>
            <div style="height:100px; margin-bottom: 15px;">
                <asp:TextBox runat="server" ID="commentTextBox"  Width="100%" Height="100%" TextMode="MultiLine" />   
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>    
    <div style="text-align:left; width:80%; float:left; height:25px;" >
        <asp:Label runat="server" Text="Statutul atribuit creditului:"></asp:Label>
        <asp:DropDownList ID="messageTypeStatusDDL" runat="server"  Width="150px"></asp:DropDownList>
        <asp:Button ID="saveButton" runat="server" Text="Salvare" OnClick="saveButton_Click" Width="130px" />
         &nbsp;&nbsp;
<%--        <asp:HiddenField runat="server" ID="userIDHiddenField" />
        <asp:HiddenField runat="server" ID="messageIDHiddenField" />--%>
    </div>
    <div style="text-align:right; width:20%; float:left; height:25px;" >
        <asp:Button ID="cancelButton" runat="server" Text="Close" Width="80px" />
    </div>

</asp:Panel>